<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"  isELIgnored="false"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="keywords" content="拖拽特效,表格拖拽,自由排序,表格排序,列排序,JS特效"/>
<link href="css/columnDrag.css" rel="stylesheet" type="text/css"/>
<title>成绩查询</title>
</head>
<body  class="keBody">
<h1 class="keTitle">成绩查询</h1>
<div class="kePublic">
<!--效果html开始-->
<div id="chenkbox">
<div id = "headbox">
<span style="float:left;">姓名：${tea_name}</span>
<span style="float:right;">年份：<select onchange = "TeaClaTab(this[selectedIndex].value)" id = "year">
<option value="${year}">${year}</option>
 <c:forEach items="${s_year}" var="s_year" varStatus="status">
 <c:if  test="${year != s_year}">
          	 <option value="${s_year}">${s_year}</option>
          </c:if>
 </c:forEach>
 </select></span>
</div>
<table id="tableSort" >
    <tr id = "ft">
          <th onclick="sortTable('tableSort',0)" title="点击排序" > 课程名 </th>
          <th onclick="sortTable('tableSort',1)" title="点击排序"> 学时 </th>
          <th onclick="sortTable('tableSort',3)" title="点击排序"> 学分</th>
          <th onclick="sortTable('tableSort',4)" title="点击排序"> 班级</th>
          <th onclick="sortTable('tableSort',4)" title="点击排序"> 学期</th>
        </tr>
          <c:forEach items="${course}" var="user" varStatus="loop">
           <tr>
          <td>${user.c_name}</td>
          <td>${user.c_time}</td>
          <td>${user.c_point}</td>
          <td>${cla[loop.count-1]}</td>
          <c:if  test="${user.g_id%2 == 0}">
          	<td>春季学期</td>
          </c:if>
          <c:if  test="${user.g_id%2 == 1}">
          	<td>秋季学期</td>
          </c:if>
          </tr>
 		</c:forEach>   
  </table>
  <div id="box"></div>
</div>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script src="js/columnDrag.js"></script>
<!--效果html结束-->
</div>
</body>
</html>